﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace vue
{
    public partial class FormUtilisateur : Form
    {
        String prenom;
        String nom;
        Vue vue;
        
        public FormUtilisateur(Vue _vue)
        {
            InitializeComponent();
            vue = _vue;
            this.Show();
            prenom = "";
            nom = "";
            inkPrenom.UseMouseForInput = true;
            inkPrenom.RecoTimeout = 1000;
            inkNom.UseMouseForInput = true;
            inkNom.RecoTimeout = 1000;
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void splitContainer1_Panel2_Paint(object sender, PaintEventArgs e)
        {

        }

        private void changerButton_Click(object sender, EventArgs e)
        {
            vue.sendUtilisateur(prenom,nom);
            this.Close();
        }

        private void inkPrenom_TextChanged(object sender, EventArgs e)
        {
            prenom = inkPrenom.Text;
        }

        private void inkNom_TextChanged(object sender, EventArgs e)
        {
            nom = inkNom.Text;
        }
    }
}
